/**
 * Resize. 
 * by Alvaro Lopez and Juan Baquero
 * 
 * You can Resize the Video Player without depend of the youtube 
 * size equals that unPlayer, put player.video(0,0,x,y); in the 
 * method draw and resize to  x * y
 */

import unplayer.youtubeplayer.VideoPlayerYoutube;
import unplayer.videoplayer.VideoPlayer;
import codeanticode.gsvideo.GSMovie;

void setup() {
  size(1280, 720, P2D);
  background(255);
  player = new VideoPlayerYoutube(this);
  player.loadVideo("http://www.youtube.com/watch?v=rJrh0RipoVo",34);
  player.showTitle(false);
  
  /* If use the method loadVideo(url,size) you must be have a
   * VideoPlayerYoutube object no onley VideoPlayer*/
}

void movieEvent(GSMovie myMovie) {
  myMovie.read();
}

void draw() {
  player.video(0,0,1280,720);
}

VideoPlayerYoutube player;
